xen/arm: vpsci: Move PSCI function dispatching from vsmc.c to vpsci.c
authorJulien Grall <julien.grall@linaro.org>
Tue, 6 Feb 2018 15:53:25 +0000 (15:53 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 9 Feb 2018 00:14:49 +0000 (16:14 -0800)
commitc9d46c6fba9496478fa9f42c4bbebce8a191527d
tree02221e55e84fb7945b3067c1577716486ac249a3
parent6dadaabbc884e5bdde24b32a67e64b1adf726274
xen/arm: vpsci: Move PSCI function dispatching from vsmc.c to vpsci.c

At the moment PSCI function dispatching is done in vsmc.c and the
function implementation in vpsci.c. Some bits of the implementation is
even done in vsmc.c (see PSCI_SYSTEM_RESET).

This means that it is difficult to follow the implementation and also
it requires to export functions for each PSCI function.

Therefore move PSCI dispatching in two new functions do_vpsci_0_1_call
and do_vpsci_0_2_call. The former will handle PSCI 0.1 calls while the
latter 0.2 or later calls.

At the same time, a new header vpsci.h was created to contain all
definitions for virtual PSCI and avoid confusion with the host PSCI.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vpsci.c
xen/arch/arm/vsmc.c
xen/include/asm-arm/psci.h
xen/include/asm-arm/vpsci.h [new file with mode: 0644]